package Utils;

import java.awt.Image;
import java.awt.image.BufferedImage;
import java.net.URL;

import javax.swing.ImageIcon;

import Utils.Som.Music;
import View.Game.GamePanel;

public class MediaUploder {

	public BufferedImage imageBackground;
	public BufferedImage image_;
	public BufferedImage image_u;
	public BufferedImage voltaNayn_;
	public BufferedImage createIndustryButton1_;
	public BufferedImage createIndustryButton2_;
	public BufferedImage createFleetMakerButton1_;
	public BufferedImage createFleetMakerButton2_;
	public BufferedImage createFleet1_;
	public BufferedImage createFlee2_;
	public BufferedImage createDefensesButton1_;
	public BufferedImage createDefensesButton2_;
	public BufferedImage exit_;
	public BufferedImage updateIndustryButton1_;
	public BufferedImage updateIndustryButton2_;
	public BufferedImage updateFleetMakerButton1_;
	public BufferedImage updateFleetMakerButton2_;
	public BufferedImage updateDefensesButton1_;
	public BufferedImage updateDefensesButton2_;
	public BufferedImage increaseFleet_;
	public BufferedImage decreaseFleet_;
	public BufferedImage voltaNyan_;
	public Music music_;
	public Image imageBackgroundGame_;
	public BufferedImage menu_;
	public BufferedImage menuButton1_;
	public BufferedImage attackPanelBackground_;
	public BufferedImage littlePlanetInfoBG_;
	public BufferedImage exitMenu;

	public MediaUploder() {
		// TODO Auto-generated constructor stub
		URL url = GamePanel.class.getResource("/Image/GIANTNYAN.jpg");
		imageBackground = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/planet.png");
		image_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/planet11.png");
		image_u = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/VoltaNayn.png");
		voltaNayn_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/VoltaNyan.png");
		voltaNyan_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonIndustry1.png");
		createIndustryButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonIndustry2.png");
		createIndustryButton2_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonFleetM1.png");
		createFleetMakerButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonFleetM2.png");
		createFleetMakerButton2_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonFleet1.png");
		createFleet1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonFleet2.png");
		createFlee2_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonDefences1.png");
		createDefensesButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonDefences2.png");
		createDefensesButton2_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/Exit.png");
		exit_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateIndustry1.png");
		updateIndustryButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateIndustry2.png");
		updateIndustryButton2_ =Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateFleetM1.png");
		updateFleetMakerButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateFleetM2.png");
		updateFleetMakerButton2_ =Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateDefences1.png");
		updateDefensesButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ButtonUpdateDefences2.png");
		updateDefensesButton2_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/SetaD.png");
		increaseFleet_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/SetaE.png");
		decreaseFleet_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/Back1.jpg");
		imageBackgroundGame_ = (new ImageIcon(url)).getImage();
		url = GamePanel.class.getResource("/Image/MenuBarFinal.png");
		menu_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/MenuBarButton.png");
		menuButton1_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		music_ = new Music("/Musics/Theme.mp3");
		url = GamePanel.class.getResource("/Image/AttackPanel.png");
		attackPanelBackground_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/LittlePlanetBG.png");
		littlePlanetInfoBG_ = Utils.toBufferedImage((new ImageIcon(url)).getImage());
		url = GamePanel.class.getResource("/Image/ExitMenu.png");
		exitMenu = Utils.toBufferedImage((new ImageIcon(url)).getImage());
	}
}
